package com.yunsc.product.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.media.entity.YunscUploadFileEntity;
import com.yunsc.product.dto.GoodsSkuDTO;
import com.yunsc.product.entity.YunscGoodsEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-04-14 21:27
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper = true)
@Data
public class GoodsInfoVO extends YunscGoodsEntity implements Serializable {

    /**
     * 商品主图
     */
    @TableField(exist = false)
    private String goodsImage;

    @JsonProperty("skuInfo")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private GoodsSkuDTO skuInfo;

    private Integer goodsSales;

    private List<YunscUploadFileEntity> goodsImages;
}
